// 导入封装的根路径
import request from '@/utils/request.js'

// 订单数据列表
export const getOrdersListApi = (params) => {
  return request({
    method: 'get',
    url: 'orders',
    params
  })
}

// 修改订单状态
export const getEditOrdersApi = (id, data) => {
  return request({
    method: 'put',
    url: `orders/${id}`,
    data
  })
}

// 查看订单详情
export const getOrderDetailsApi = (id) => {
  return request({
    method: 'get',
    url: `orders/${id}`
  })
}

// 物流信息
export const getLogisticsApi = () => {
  return request({
    method: 'get',
    url: '/kuaidi/1106975712662'
  })
}
